{"version":3,"file":"tableeditor.bundle.map.js","names":["this","BX","Landing","Node","Text","exports","ui_draganddrop_draggable","main_core","TableEditor","node","babelHelpers","classCallCheck","table","querySelector","tBody","getElementsByTagName","addTitles","enableEditCells","dragAndDropRows","dragAndDropCols","resizeColumn","buildLines","addRow","addCol","onUnselect","unselect","selectAll","selectRow","selectCol","onCopyTable","onDeleteElementTable","onShowPopupMenu","createClass","key","value","tableNode","hasAttribute","title","Utils","escapeText","Loc","getMessage","querySelectorAll","forEach","element","setAttribute","tableEditor","isSelectAll","arguments","length","undefined","classList","remove","removeClasses","Event","bind","isContains","toConsumableArray","event","target","some","className","includes","classListChild","parentElement","thTech","isSelectedTable","contains","setRows","count","row","setTh","childNodes","index","lastThIndex","cell","nodeType","lastTh","add","th","toggle","thDnd","trDnd","neededPosition","setTrDnd","newSetTrDnd","setThDnd","cellIndex","tr","countNode","nodeCount","needNodePosition","trChild","width","getBoundingClientRect","height","offset","linesX","document","lineX","style","linesY","lineY","getButtonsAddRow","buttons","button","Array","prototype","slice","call","selectedCell","selectedCellPos","parentNode","createElement","children","indexOf","lastElementPosition","newTd","backgroundColor","getAttribute","color","newTr","divAddRow","divLineX","divRowDnd","appendChild","_count","setTd","item","push","i","newTdCloned","cloneNode","insertBefore","nextSibling","Block","currentNode","onChange","UI","Panel","EditorPanel","getInstance","hide","getButtonsAddCol","selectedRow","selectedRowPos","newThFirst","newThFirstCloned","divColumnDnd","divColumnResize","divAddColHere","divLineY","countChild","countNodes","newNeededPosition","_this","draggableRows","Draggable","container","draggable","dragElement","type","HEADLESS","rows","setRowPositionsY","setRowHeights","currentPositionRow","newPositionRow","draggableRowOffsetY","tablePositionLeft","tablePositionTop","currentPositionRowX","currentPositionRowY","cloneRow","originalSource","subscribe","dragStartEvent","data","left","top","getData","sourceIndex","y","x","append","indexFirstNode","borderRadius","getComputedStyle","offsetY","position","transform","newDraggableRowPositionY","newDraggableRowPositionBottomY","transitivePositionY","_i","_transitivePositionY","referenceNode","referenceNodeNext","draggableCols","currentPositionCol","newPositionCol","draggableColOffsetX","draggableColOffsetY","setColCells","setColPositionsX","setColWidths","currentPositionColX","setColCellsStyles","draggableCol","map","thOfFirstRow","lastChild","hidden","offsetX","newDraggableColPositionX","newDraggableColPositionRightX","_i2","transitivePositionX","_i3","_transitivePositionX","childCells","tbody","resizeElement","thWidth","currentPosition","setTr","thNewWidth","Dom","concat","tBodyWidth","tableContainerWidth","thContentList","td","setElements","EventEmitter","default","DragAndDrop"],"sources":["tableeditor.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,QAAUF,KAAKC,GAAGC,SAAW,CAAC,EACtCF,KAAKC,GAAGC,QAAQC,KAAOH,KAAKC,GAAGC,QAAQC,MAAQ,CAAC,EAChDH,KAAKC,GAAGC,QAAQC,KAAKC,KAAOJ,KAAKC,GAAGC,QAAQC,KAAKC,MAAQ,CAAC,GACzD,SAAUC,EAAQC,EAAyBC,GAC3C,aAEA,IAAIC,EAA2B,WAC7B,SAASA,EAAYC,GACnBC,aAAaC,eAAeX,KAAMQ,GAClCR,KAAKY,MAAQH,EAAKI,cAAc,kBAChC,IAAKb,KAAKY,MAAO,CACf,MACF,CACAZ,KAAKS,KAAOA,EACZT,KAAKc,MAAQd,KAAKS,KAAKM,qBAAqB,SAAS,GACrDf,KAAKgB,UAAUhB,KAAKS,MACpBT,KAAKiB,gBAAgBjB,KAAKY,OAC1BZ,KAAKkB,gBAAgBlB,MACrBA,KAAKmB,gBAAgBnB,MACrBA,KAAKoB,aAAapB,MAClBA,KAAKqB,WAAWrB,MAChBA,KAAKsB,OAAOtB,MACZA,KAAKuB,OAAOvB,MACZA,KAAKwB,WAAWxB,MAChBA,KAAKyB,SAASzB,MACdA,KAAK0B,UAAU1B,MACfA,KAAK2B,UAAU3B,MACfA,KAAK4B,UAAU5B,MACfA,KAAK6B,YAAY7B,MACjBA,KAAK8B,qBAAqB9B,MAC1BA,KAAK+B,gBA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